package com.chandra.pos.dao.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * UserEntity: chkumar
 * Date: 6/1/12
 * Time: 10:45 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "ROLES")
public class RoleEntity implements Serializable {


    public long id;

    public String name;

    public String description;

    public RoleEntity(long id) {
        this.id = id;
    }

    public RoleEntity() {

    }

    @Id
    @GeneratedValue
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
